#!/bin/bash
ExitStat=`sh /root/status_storm.sh |awk 'NR%3==0'|grep 1`
RuningStat=`sh status_storm.sh |grep -E 'running|RUNNING' |wc|awk '{print $1}'` #running num

if [ "x$ExitStat" == x -a $RuningStat -eq 3 ]
then
        echo "se storm server UP"
        exit 0
else
        echo "se storm is wrong status"
        exit 2
fi

